package com.innjia.base.common;

import java.io.Serializable;

/**
 * 结果信息
 * @author fangcheng.huang
 *
 */
public class ResultInfo implements Serializable{

	private static final long serialVersionUID = -1919399995480822637L;
	
	/**
	 * 0:失败，1：成功
	 */
	private String code;
	
	/**
	 * 结果信息
	 */
	private String msg;
	
	/**
	 * 结果数据
	 */
	private Object data;

	public ResultInfo() {
		this.data = null;
    }

    public ResultInfo(String code) {
        super();
		this.code = code;
	}

	public ResultInfo(String code, String msg) {
		super();
		this.code = code;
		this.msg = msg;
		this.data = null;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getMsg() {
		return msg;
	}

	public void setMsg(String msg) {
		this.msg = msg;
	}

	public Object getData() {
		return data;
	}

	public void setData(Object data) {
		this.data = data;
	}
	
	

}
